package com.iraeta.service.sys;

import com.iraeta.entity.User;
import com.iraeta.entity.UserRole;
import com.iraeta.entity.resulttype.UserRoleResultType;

import java.util.List;

public interface UserService {
    public void addUser(User user);
    public void deleteUser(int id);
    public void updateUser(User user);
    public User getUser(int id);
    public User getUserByUserName(String userName, String pwd);
    public List<User> listUserByName(String name);

    /*user role相关*/
    public void saveUserRole(int userId, List<Integer> roleList);

    /*user permission相关*/
    public List<Integer> listUserPermissions(int userId);
}
